
package abook_testNG;

import org.testng.annotations.Test;

	public class GroupCreate extends GroupClass {
		@Test
		public void testAddGroup() throws Exception {
			openMainPage();
			goToGroupsPage();
			initGroupCreation();
			GroupData group = new GroupData();
			group.name = "friends";
			group.header = "header 1";
			group.footer = "footer 1";
			fillGroupForm(group);
			submitGroupCreation();
			returnToGroupsPage();
		}
		
		@Test
		public void testEmptyGroup() throws Exception {
			openMainPage();
			goToGroupsPage();
			initGroupCreation();
			fillGroupForm(new GroupData("", "", ""));
			submitGroupCreation();
			returnToGroupsPage();
		}
	}


